<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
	<HEAD>
		<TITLE>XX商业银行风险管理系统用户登录</TITLE>
		<LINK href="style/Default.css" type=text/css rel=stylesheet>
		<LINK href="style/xtree.css" type=text/css rel=stylesheet>
		<LINK href="style/User_Login.css" type=text/css rel=stylesheet>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
		<script language="javascript" src="risk/js/jquery-1.3.2.js" type="text/javascript"></script>
	</HEAD>
	
	<script type="text/javascript">
			function loginV(){
				var username = $('#TxtUserName').val();
				var password = $('#TxtPassword').val();
				var valiNo = $('#TxtValidateNo').val();
				var url = "login.action?userName="+username+"&passWord="+password+"&validateNo="+valiNo;
				$.get(url,function(data){
					if(data == "validate_error"){ //验证码错误
						$("#valiError").css("display","block");
						$("#loginError").css("display","none");
						
					}else if(data == "user_error"){ //用户名或者密码错
						$("#loginError").css("display","block");
						$("#valiError").css("display","none");
					}else{
				//		alert(data);
						window.location.href = data;
					}
					return false;
					});
			}
	</script>
	<BODY id=userlogin_body style="background-color: #A4D3EE;">
			<DIV></DIV>
		<form action="login.action" method="post" onsubmit="return false">
			<DIV id=user_login>
				<DL>
					<DD id=user_top>
						<UL>
							<LI class=user_top_l></LI>
							<LI class=user_top_c></LI>
							<LI class=user_top_r></LI>
						</UL>
						<DD id=user_main>
							<UL>
								<LI class=user_main_l></LI>
								<LI class=user_main_c>
									<DIV class=user_main_box >
										<UL>
											<LI class=d1 id="loginError" style="display:none; color: red; width: 200px;  text-align: right;"   >
												用户名或 密码错误！
											</LI>
											<LI class=s1 id="valiError" style="display:none; color: red; width: 200px;  text-align: right;"   >
												验证码错误！
											</LI>
										</UL>
										<UL>
										
											<LI class=user_main_text>
												用户名：
											</LI>
											<LI class=user_main_input>
												<INPUT type=text class=TxtUserNameCssClass id=TxtUserName
													maxLength=20 name=userName>
											</LI>
											
										</UL>
										<UL>
											<LI class=user_main_text>
												密码：
											</LI>
											<LI class=user_main_input>
												<INPUT class=TxtPasswordCssClass id=TxtPassword
													type=password name=passWord>
											</LI>
										</UL>
										<UL>
											<LI class=user_main_text>
												验证码：
											</LI>
											<LI class=user_main_input>
												<INPUT type=text class=TxtValidateCodeCssClass
													id=TxtValidateNo maxLength=20 name=validateNo>
											</LI>
											<LI class=user_main_input>
												&nbsp;
												<a href="findPassword.action">忘记密码?</a>
											</LI>
										</UL>
										<UL>
											<LI class=user_main_text>

											</LI>
											<LI class=user_main_textL>
												<img id="kapt" src="kaptcha.jpg" onclick="javascript:this.src='kaptcha.jpg?'+Math.random();" style="cursor: pointer;"/>
											</LI>
											<LI class=user_main_textL>
												<a style="color: blue; cursor: pointer;" onclick="javascript:document.getElementById('kapt').src='kaptcha.jpg?'+Math.random();">看不清?换一张</a>
											</LI>
										</UL>
									</DIV>
								</LI>
								<LI class=user_main_r>
									 <!--  	<a style="cursor: pointer;"  onclick="loginV()"><img src="images/user_botton.gif" /></a>-->
									  <INPUT class=IbtnEnterCssClass id=sds
										type=image onclick="loginV()" src="images/user_botton.gif" />
								</LI>
							</UL>
					<DD id=user_bottom>
						<UL>
							<LI class=user_bottom_l></LI>
							<LI class=user_bottom_c>
								<SPAN style="MARGIN-TOP: 40px"></SPAN>
							</LI>
							<LI class=user_bottom_r></LI>
						</UL>
					</DD>
				</DL>
			</DIV>
		</form>
	</BODY>
</HTML>
